<?php

namespace models;

/**
 * @Entity
 * @Table(name="user_details")
 */
 
class UserDetails {
	/**
	 * @OneToOne(targetEntity="User")
	 * @JoinColumn(name="user_id", referencedColumnName="id")
	 */
	protected $user = null;
	
	public function getUser() { return $this->user; }
	
	/**
	 * @Id
	 * @Column(name="user_id")
	 */
	protected $id = null;
	
	/**
	 * @Column(name="city", type="string", length=100, unique=false, nullable=false)
	 */
	protected $city;
	
	public function getCity() {
		return $this->city;
	}
}